package org.nobody.mallb2c.mallsearch.feign;

import org.nobody.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-13-17:00
 */
@FeignClient("mall-product")
public interface ProductFeignService {
  @GetMapping("/mallproduct/attr/info/{attrId}")
  public R attrInfo(@PathVariable("attrId") Long attrId);

  @GetMapping("/mallproduct/brand/infos")
  public R brandsInfo(@RequestParam("brandIds") List<Long> brandIds);
}
